import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '@/views/Home'
import Login from '@/views/Login'

const routes = [
  {
    path: '/',
    component: Login
  },{
    path: '/login',
    component: Login
  },{
    path: '/home', 
    component: Home
  },{
    path: '/dailySongs',
    name: '每日推荐',
    component: ()=>import('@/views/DailySongs.vue')
  },{
    path: '/gedanSongs',
    name: '歌单详情',
    component: ()=>import('@/components/GedanSongs.vue')
  },{
    path: '/playSong',
    name: '播放歌曲',
    component: ()=>import('@/components/PlayMusic.vue')
  }

]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
